package com.chee.plant.hibernate.object;

import com.chee.plant.hibernate.object.base.BaseUserHeroplant;

public class UserHeroplant extends BaseUserHeroplant {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public UserHeroplant() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public UserHeroplant(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public UserHeroplant(java.lang.Integer id, java.lang.Integer userId,
			java.lang.Integer friendId, java.lang.String name,
			java.lang.String desc, java.lang.Integer attack,
			java.lang.Integer defense, java.lang.Integer life,
			java.lang.Integer level, java.lang.Integer exp,
			java.lang.Integer reviveTime) {

		super(id, userId, friendId, name, desc, attack, defense, life, level,
				exp, reviveTime);
	}

	/* [CONSTRUCTOR MARKER END] */
	public void setDefaults() {
		this.setAttack(0);
		this.setDefense(0);
		this.setDesc("");
		this.setExp(0);
		this.setFriendId(0);
		this.setId(0);
		this.setLevel(0);
		this.setLife(0);
		this.setName("");
		this.setReviveTime(0);
		this.setUserId(0);
	}

}